﻿// 1.1.5.03. Write a program that finds the biggest of three integers using nested if statements.

using System;

class HighestByThree
{
    static void Main()
    {
        while (true)
        {
            int firstValue = int.Parse(Console.ReadLine());
            int secondValue = int.Parse(Console.ReadLine());
            int thirdValue = int.Parse(Console.ReadLine());

            if (firstValue > secondValue)
            {
                if (thirdValue > firstValue)
                {
                    Console.WriteLine(thirdValue);
                }
                else
                {
                    Console.WriteLine(firstValue);
                }
            }
            else
            {
                if (secondValue > thirdValue)
                {
                    Console.WriteLine(secondValue);
                }
                else
                {
                    Console.WriteLine(thirdValue);
                }
            } 
        }
    }
}